local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1
L0_1 = {}
L0_1.group_id = 305003001
L1_1 = {}
L1_1.schedule_id = 5003001
L2_1 = {}
monsters = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1001
L3_1.npc_id = 30001
L4_1 = {}
L4_1.x = 2255.541
L4_1.y = 209.99
L4_1.z = -937.167
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 345.828
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.area_id = 1
L4_1 = {}
L4_1.config_id = 1003
L4_1.npc_id = 30001
L5_1 = {}
L5_1.x = 1918.746
L5_1.y = 223.826
L5_1.z = -942.049
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 26.744
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.area_id = 3
L5_1 = {}
L5_1.config_id = 1005
L5_1.npc_id = 30001
L6_1 = {}
L6_1.x = 1786.332
L6_1.y = 221.863
L6_1.z = -390.292
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 210.03
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.area_id = 3
L6_1 = {}
L6_1.config_id = 1007
L6_1.npc_id = 30001
L7_1 = {}
L7_1.x = 1569.791
L7_1.y = 218.756
L7_1.z = 253.453
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 217.351
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.area_id = 5
L7_1 = {}
L7_1.config_id = 1009
L7_1.npc_id = 30001
L8_1 = {}
L8_1.x = 921.59
L8_1.y = 212.78
L8_1.z = 338.179
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 210.837
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.area_id = 5
L8_1 = {}
L8_1.config_id = 1011
L8_1.npc_id = 30001
L9_1 = {}
L9_1.x = -62.85
L9_1.y = 276.57
L9_1.z = 243.505
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 51.803
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.area_id = 7
L9_1 = {}
L9_1.config_id = 1013
L9_1.npc_id = 30001
L10_1 = {}
L10_1.x = -495.302
L10_1.y = 210.022
L10_1.z = 354.714
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 135.208
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.area_id = 7
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1002
L3_1.gadget_id = 70360001
L4_1 = {}
L4_1.x = 2254.52
L4_1.y = 209.99
L4_1.z = -936.416
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.area_id = 1
L4_1 = {}
L4_1.config_id = 1004
L4_1.gadget_id = 70360001
L5_1 = {}
L5_1.x = 1918.969
L5_1.y = 223.826
L5_1.z = -941.328
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L4_1.area_id = 3
L5_1 = {}
L5_1.config_id = 1006
L5_1.gadget_id = 70360001
L6_1 = {}
L6_1.x = 1785.885
L6_1.y = 221.863
L6_1.z = -391.276
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 0.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L5_1.area_id = 3
L6_1 = {}
L6_1.config_id = 1008
L6_1.gadget_id = 70360001
L7_1 = {}
L7_1.x = 1569.482
L7_1.y = 218.756
L7_1.z = 252.497
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.area_id = 5
L7_1 = {}
L7_1.config_id = 1010
L7_1.gadget_id = 70360001
L8_1 = {}
L8_1.x = 920.87
L8_1.y = 212.78
L8_1.z = 337.54
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L7_1.area_id = 5
L8_1 = {}
L8_1.config_id = 1012
L8_1.gadget_id = 70360001
L9_1 = {}
L9_1.x = -62.182
L9_1.y = 276.398
L9_1.z = 244.323
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L8_1.area_id = 7
L9_1 = {}
L9_1.config_id = 1014
L9_1.gadget_id = 70360001
L10_1 = {}
L10_1.x = -494.65
L10_1.y = 210.022
L10_1.z = 354.929
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L9_1.area_id = 7
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
gadgets = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1017
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 12
L4_1 = {}
L4_1.x = 2255.327
L4_1.y = 209.99
L4_1.z = -937.995
L3_1.pos = L4_1
L3_1.area_id = 1
L2_1[1] = L3_1
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1001015
L3_1.name = "GROUP_REFRESH_1015"
L4_1 = EventType
L4_1 = L4_1.EVENT_GROUP_REFRESH
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = ""
L3_1.action = "action_EVENT_GROUP_REFRESH_1015"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1001016
L4_1.name = "GROUP_LOAD_1016"
L5_1 = EventType
L5_1 = L5_1.EVENT_GROUP_LOAD
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = ""
L4_1.action = "action_EVENT_GROUP_LOAD_1016"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1001017
L5_1.name = "ENTER_REGION_1017"
L6_1 = EventType
L6_1 = L6_1.EVENT_ENTER_REGION
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_ENTER_REGION_1017"
L5_1.action = "action_EVENT_ENTER_REGION_1017"
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "PaimonCheck"
L3_1.value = 1
L3_1.no_refresh = true
L2_1[1] = L3_1
variables = L2_1
L2_1 = {}
L2_1.suite = 8
L2_1.end_suite = 0
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 1002
L6_1 = 1004
L7_1 = 1006
L8_1 = 1008
L9_1 = 1010
L10_1 = 1012
L11_1 = 1014
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 1017
L4_1[1] = L5_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "GROUP_LOAD_1016"
L6_1 = "ENTER_REGION_1017"
L4_1[1] = L5_1
L4_1[2] = L6_1
L3_1.triggers = L4_1
L4_1 = {}
L5_1 = 1001
L4_1[1] = L5_1
L3_1.npcs = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 1002
L7_1 = 1004
L8_1 = 1006
L9_1 = 1008
L10_1 = 1010
L11_1 = 1012
L12_1 = 1014
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
L5_1[7] = L12_1
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "GROUP_LOAD_1016"
L5_1[1] = L6_1
L4_1.triggers = L5_1
L5_1 = {}
L6_1 = 1003
L5_1[1] = L6_1
L4_1.npcs = L5_1
L4_1.rand_weight = 100
L5_1 = {}
L6_1 = {}
L5_1.monsters = L6_1
L6_1 = {}
L7_1 = 1002
L8_1 = 1004
L9_1 = 1006
L10_1 = 1008
L11_1 = 1010
L12_1 = 1012
L13_1 = 1014
L6_1[1] = L7_1
L6_1[2] = L8_1
L6_1[3] = L9_1
L6_1[4] = L10_1
L6_1[5] = L11_1
L6_1[6] = L12_1
L6_1[7] = L13_1
L5_1.gadgets = L6_1
L6_1 = {}
L5_1.regions = L6_1
L6_1 = {}
L7_1 = "GROUP_LOAD_1016"
L6_1[1] = L7_1
L5_1.triggers = L6_1
L6_1 = {}
L7_1 = 1005
L6_1[1] = L7_1
L5_1.npcs = L6_1
L5_1.rand_weight = 100
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 1002
L9_1 = 1004
L10_1 = 1006
L11_1 = 1008
L12_1 = 1010
L13_1 = 1012
L14_1 = 1014
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L7_1[5] = L12_1
L7_1[6] = L13_1
L7_1[7] = L14_1
L6_1.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "GROUP_LOAD_1016"
L7_1[1] = L8_1
L6_1.triggers = L7_1
L7_1 = {}
L8_1 = 1007
L7_1[1] = L8_1
L6_1.npcs = L7_1
L6_1.rand_weight = 100
L7_1 = {}
L8_1 = {}
L7_1.monsters = L8_1
L8_1 = {}
L9_1 = 1002
L10_1 = 1004
L11_1 = 1006
L12_1 = 1008
L13_1 = 1010
L14_1 = 1012
L15_1 = 1014
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_1
L8_1[4] = L12_1
L8_1[5] = L13_1
L8_1[6] = L14_1
L8_1[7] = L15_1
L7_1.gadgets = L8_1
L8_1 = {}
L7_1.regions = L8_1
L8_1 = {}
L9_1 = "GROUP_LOAD_1016"
L8_1[1] = L9_1
L7_1.triggers = L8_1
L8_1 = {}
L9_1 = 1009
L8_1[1] = L9_1
L7_1.npcs = L8_1
L7_1.rand_weight = 100
L8_1 = {}
L9_1 = {}
L8_1.monsters = L9_1
L9_1 = {}
L10_1 = 1002
L11_1 = 1004
L12_1 = 1006
L13_1 = 1008
L14_1 = 1010
L15_1 = 1012
L16_1 = 1014
L9_1[1] = L10_1
L9_1[2] = L11_1
L9_1[3] = L12_1
L9_1[4] = L13_1
L9_1[5] = L14_1
L9_1[6] = L15_1
L9_1[7] = L16_1
L8_1.gadgets = L9_1
L9_1 = {}
L8_1.regions = L9_1
L9_1 = {}
L10_1 = "GROUP_LOAD_1016"
L9_1[1] = L10_1
L8_1.triggers = L9_1
L9_1 = {}
L10_1 = 1011
L9_1[1] = L10_1
L8_1.npcs = L9_1
L8_1.rand_weight = 100
L9_1 = {}
L10_1 = {}
L9_1.monsters = L10_1
L10_1 = {}
L11_1 = 1002
L12_1 = 1004
L13_1 = 1006
L14_1 = 1008
L15_1 = 1010
L16_1 = 1012
L17_1 = 1014
L10_1[1] = L11_1
L10_1[2] = L12_1
L10_1[3] = L13_1
L10_1[4] = L14_1
L10_1[5] = L15_1
L10_1[6] = L16_1
L10_1[7] = L17_1
L9_1.gadgets = L10_1
L10_1 = {}
L9_1.regions = L10_1
L10_1 = {}
L11_1 = "GROUP_LOAD_1016"
L10_1[1] = L11_1
L9_1.triggers = L10_1
L10_1 = {}
L11_1 = 1013
L10_1[1] = L11_1
L9_1.npcs = L10_1
L9_1.rand_weight = 100
L10_1 = {}
L11_1 = {}
L10_1.monsters = L11_1
L11_1 = {}
L12_1 = 1002
L13_1 = 1004
L14_1 = 1006
L15_1 = 1008
L16_1 = 1010
L17_1 = 1012
L18_1 = 1014
L11_1[1] = L12_1
L11_1[2] = L13_1
L11_1[3] = L14_1
L11_1[4] = L15_1
L11_1[5] = L16_1
L11_1[6] = L17_1
L11_1[7] = L18_1
L10_1.gadgets = L11_1
L11_1 = {}
L10_1.regions = L11_1
L11_1 = {}
L12_1 = "GROUP_REFRESH_1015"
L13_1 = "GROUP_LOAD_1016"
L11_1[1] = L12_1
L11_1[2] = L13_1
L10_1.triggers = L11_1
L10_1.rand_weight = 100
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
suites = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
  L2_2 = ScriptLib
  L2_2 = L2_2.GetServerTime
  L3_2 = A0_2
  L2_2 = L2_2(L3_2)
  L3_2 = ScriptLib
  L3_2 = L3_2.GetActivityOpenAndCloseTimeByScheduleId
  L4_2 = A0_2
  L5_2 = L1_1.schedule_id
  L3_2 = L3_2(L4_2, L5_2)
  L4_2 = #L3_2
  if L4_2 == 0 then
    L4_2 = -1
    return L4_2
  end
  L4_2 = math
  L4_2 = L4_2.ceil
  L5_2 = L3_2[1]
  L5_2 = L2_2 - L5_2
  L5_2 = L5_2 / 86400
  L4_2 = L4_2(L5_2)
  if 7 < L4_2 then
    L5_2 = -1
    return L5_2
  end
  L5_2 = ScriptLib
  L5_2 = L5_2.RefreshGroup
  L6_2 = A0_2
  L7_2 = {}
  L7_2.group_id = 305003001
  L7_2.suite = L4_2
  L5_2(L6_2, L7_2)
  L5_2 = 0
  return L5_2
end
action_EVENT_GROUP_REFRESH_1015 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
  L2_2 = ScriptLib
  L2_2 = L2_2.GetServerTime
  L3_2 = A0_2
  L2_2 = L2_2(L3_2)
  L3_2 = ScriptLib
  L3_2 = L3_2.GetActivityOpenAndCloseTimeByScheduleId
  L4_2 = A0_2
  L5_2 = L1_1.schedule_id
  L3_2 = L3_2(L4_2, L5_2)
  L4_2 = #L3_2
  if L4_2 == 0 then
    L4_2 = -1
    return L4_2
  end
  L4_2 = math
  L4_2 = L4_2.ceil
  L5_2 = L3_2[1]
  L5_2 = L2_2 - L5_2
  L5_2 = L5_2 / 86400
  L4_2 = L4_2(L5_2)
  if 7 < L4_2 then
    L5_2 = -1
    return L5_2
  end
  L5_2 = ScriptLib
  L5_2 = L5_2.GetGroupSuite
  L6_2 = A0_2
  L7_2 = 305003001
  L5_2 = L5_2(L6_2, L7_2)
  if L5_2 ~= L4_2 then
    L6_2 = ScriptLib
    L6_2 = L6_2.RefreshGroup
    L7_2 = A0_2
    L8_2 = {}
    L8_2.group_id = 305003001
    L8_2.suite = L4_2
    L6_2(L7_2, L8_2)
  end
  L6_2 = 0
  return L6_2
end
action_EVENT_GROUP_LOAD_1016 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = A1_2.param1
  if L2_2 ~= 1017 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "PaimonCheck"
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 ~= 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_1017 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.ShowReminder
  L3_2 = A0_2
  L4_2 = 1110159
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : active_reminder_ui"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "PaimonCheck"
  L5_2 = 99
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_groupVariable"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_1017 = L2_1
